package h08;

import java.util.*;

/**
 * 生成10个0-100之间的不重复的随机数,并输出
 */
public class Test3 {
    public static void main(String[] args) {
        Random random = new Random();
        HashSet<Integer> c = new HashSet<>();

        for (int i = 0; c.size() != 10; i++) {
            c.add(random.nextInt(100));
        }

        System.out.println(c);
    }
}
